package com.syaccp.request;



import java.io.Serializable;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysRoleRequest对象", description="角色")
public class SysRoleRequest implements Serializable {
	
	 @ApiModelProperty(value = "角色id(添加时不填，修改时必填)")
	    private Integer id;

	    @ApiModelProperty(value = "角色名称", required = true)
	    @NotNull(message = "角色名称不能为空")
	    @Length(max = 32, message = "角色名称不能超过32个字符")
	    private String name;

	  
	    @ApiModelProperty(value = "状态：1-关闭，0-正常", required = true)
	    @NotNull(message = "状态不能为空")
	    private Integer status;
	    
	    
	    @ApiModelProperty(value = "权限字符串(英文逗号拼接)", required = true)
	    @NotNull(message = "权限不能为空")
	    private String rules;
	    
	    
	    

}
